#include<stdio.h>
#define maxSizeOfVFSName 10
#define avgFileSizeInVFSInBytes 1024
#define maxBlockSize 1024
typedef struct fileDescriptor
{
	char fileName[20];
	char location[100];
	char type;
	long size;
	long blockNumber;
} descriptors;
typedef struct metaHeader
{
	char fileSystemLabel[maxSizeOfVFSName];
	int countOfFileDescriptors;
	int maxDescriptors;
} meta;
typedef struct header
{
	descriptors *desc;
	char *freeList;
} head;
int main()
{
	FILE *fp=fopen("test.txt","wb");
	int maxFileDescriptors=1024;
	int noOfBlocks=maxFileDescriptors;
	if(fp==NULL)
		printf("\n No");
	fseek(fp,sizeof(meta)+sizeof(descriptors)*maxFileDescriptors+sizeof(char)*(noOfBlocks),SEEK_SET);
	fwrite("Hello",maxBlockSize,1,fp);
}
